package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("ncg_watch")
@ApiModel(value = "Watch对象", description = "")
public class NcgWatch implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("名称")
    private String imei;

    @ApiModelProperty("步数")
    private Long stepCount; // 步数

    @ApiModelProperty("剩余电量")
    private Integer remainElectricity; // 剩余电量

    @ApiModelProperty("心率")
    private Integer heartRate; // 心率

    @ApiModelProperty("SBP,收缩压")
    private Integer systolicBloodPressure; // SBP,收缩压

    @ApiModelProperty("DBP,舒张压")
    private Integer diastolicBloodPressure; // DBP,舒张压

    @ApiModelProperty("⾎氧")
    private Integer bloodOxygen; // ⾎氧

    @ApiModelProperty("体温")
    private BigDecimal bodyTemperature; // 体温

    @ApiModelProperty("定位信息id")
    private String locationInfoid; // 定位信息id

    @ApiModelProperty("报警信息id")
    private String alarmInfoid; // 报警信息id

//    @ApiModelProperty("创建时间")
//    private LocalDateTime createtime;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")                    // 表示返回时间类型
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")      // 表示接收时间类型
    private LocalDateTime createtime;

}
